<!--- default incoming values and get the game requested --->
<cfparam name="game_id" type="numeric" default="0" />
<cfquery name="qGame" datasource="sixdegreesimprov">
	SELECT game_id, game_name, descrip
    FROM igdb_games
    WHERE (game_id = <cfqueryparam cfsqltype="cf_sql_integer" value="#game_id#" />)
</cfquery>
<!--- Only display the game if we found one --->
<cfoutput>
	<cfif (qGame.recordCount gt 0)>
        <div class="post">
            <h1 class="title"><a href="##">Game: #qGame.game_name#</a></h1>
            <div class="entry">
                <p>#qGame.descrip#</p>
            </div>
        </div>
    <cfelse>
        <div class="post">
            <h1 class="title">No game found</h1>
            <div class="entry">
                <p>
                    We couldn't find a game with the ID #game_id#.
                </p>
            </div>
        </div>
    </cfif>
</cfoutput>